//************** mixins
@mixin link_round($radio: 30) {
  border: 1px solid #bbb;
  border-radius: 50%;
  color: #656d78;
  display: block;
  float: left;
  height: #{$radio}px;
  line-height: #{$radio - 3}px;
  margin-left: 3px;
  text-align: center;
  transition: all 200ms ease 0s;
  width: #{$radio}px;
}

//************** Main content
#admin_content {
  min-height: 400px;
  .panel {
    &.panel-toggled > .panel-body {
      display: none;
    }
    .panel-heading {
      //overflow: hidden;
      position: relative;
      .panel-controls {
        float: right;
        list-style: outside none none;
        position: absolute;
        right: 26px;
        top: 5px;
        li {
          float: left;
          a {
            @include link_round();
          }
        }
      }
      > .btn{
        position: absolute;
        right: 26px;
        top: 14px;
      }
    }
    .panel-footer {
      overflow: hidden;
    }

  }

  // label size
  .label.label-form {
    font-size: 12px;
    vertical-align: middle;
  }
  // reset label inputs
  label {
    input[type="radio"], input[type="checkbox"] {
      margin-right: 4px;
    }
  }
  // category lists
  .categorychecklist {
    padding-left: 10px;
    list-style: none;
    ul {
      padding-left: 25px;
      list-style: none;
    }
  }

  #form-post {
    .sl-slug-edit {
      margin-top: 4px;
    }
    .gallery-item-remove {
      position: absolute;
      margin-top: -22px;
    }
  }

  // widgets
  #content-widget .widgets-available .small-box {
    .inner {
      padding-top: 30px;
    }
    a {
      position: absolute;
      top: 4px;
      right: 5px;
      @include link_round(25);
      background: rgba(250, 250, 250, 0.4);
      &.edit_link {
        left: 5px;
        right: auto;
      }
    }
  }

  // pagination
  div.pagination {
    padding: 0;
    margin: 0;
    white-space: nowrap;
    & > * {
      background-color: #fafafa;
      border: 1px solid #ddd;
      color: #777;
      padding: 6px 12px;
      margin: 0 -2px;
    }
    em {
      background-color: #337ab7;
      border-color: #337ab7;
      color: #fff;
      cursor: default;
    }
    span {
      cursor: not-allowed;
    }
  }
  form {
    .form-group > .trans_panel{
      margin-top: -25px;
    }
  }
}

//************** sidebar left
#sidebar-menu{
  z-index: 2;
}

//************** reset modals
.modal, #admin_content {
  .btn_upload {
    cursor: pointer;
  }
  .input-append.date .input-group-addon {
    padding: 7px 0;
    width: 30px;
  }
  .input-group.color{
    .input-group-addon {
      background-color: #ccc;
    }
    .over_field + span{
      padding: 5px;
      position: absolute;
      right: 0;
      top: 0;
      width: 30px;
    }
  }

  // translations
  .trans_panel {
    .nav-tabs .has-error {
      color: #a94442;
    }
    .tab-pane .has-error {
      border: 1px solid #a94442;
    }
  }
  .trans_panel {
    //fix for multilanguage tabs
    //margin-top: -25px;
  }

  // custom fields render in forms
  .item-custom-field {
    margin-bottom: 15px;
    > label {
      display: block;
      .shortcode_field input{
        min-width: 250px;
      }
    }
    .actions{
      overflow: hidden;
      width: 67px;
      float: left;
      .fa {
        @include link_round;
      }
      & + .group-input-fields-content {
        margin-left: 75px;
      }
    }
  }
  .custom_sortable_grouped .header-field-grouped{
    padding: 5px;
    margin-bottom: 3px;
    .fa{
      @include link_round;
      display: inline-block;
      float: none;
    }
  }
}

//************** Main Header && intro js custom
#main-header{
  z-index: 4;
  &.introjs-fixParent{
    width: 100%;
    .navbar {
      width: 100%;
    }
  }
  .logo img {
    max-width: 100%;
    max-height: 100%;
  }
}

//************** fix tinymce fullscreen
div.mce-fullscreen{
  z-index: 10;
}

#tab-information {
  .admin_logo_upload {
    a img {
      border-radius: 0;
      box-shadow: none;
      border: 1px solid #d2d6de;
      padding: 8px;
      margin: 10px 10px 0 0;
    }
  }
}

//************** custom loading style
#zerocms_custom_loading{
  position: relative;
  z-index: 999999;
  .back_spinner{
    position: fixed;
    z-index: 99998;
    width: 100%;
    top: 0px;
    height: 100%;
    background-color: #2D95BF;
    background-color: rgba(60, 141, 188, 0.2);
  }
  .loader_spinner{
    z-index: 99999;
    position: fixed;
    left: 50%;
    margin-left: -35px;
    margin-top: -35px;
    top: 50%;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: image_url("zerocms/admin/admin_spinner.gif") no-repeat center center #2D95BF;
  }
}

// copy paste code style
input.code_style{
  background-color: #f9f2f4;
  border-radius: 4px;
  color: #c7254e;
  font-size: 90%;
  padding: 2px 4px;
  font-weight: normal;
  border: none;
}

// fix tab content padding
.tab-content > .tab-pane{
  padding-top: 5px;
}
.content-upload-plugin{
  min-height: 45px;
  position: relative;
  .rm-file{
    position: absolute;
    top: 100%;
    margin-top: -22px;
  }
  img{
    max-height: 100px;
    max-width: 200px;
  }
}
label.error, span.error{
  color: #a94442;
  font-size: 11px;
}
